﻿using CookComputing.XmlRpc;

namespace aprogblog.App.MetaWeblog {

    public interface MetaWeblogAPI {

        [XmlRpcMethod("metaWeblog.newPost")]
        string AddPost(string Blogid, string UserName, string Password, Post Post, bool Publish);

        [XmlRpcMethod("metaWeblog.editPost")]
        bool UpdatePost(string Postid, string UserName, string Password, Post Post, bool Publish);

        [XmlRpcMethod("metaWeblog.getPost")]
        Post GetPost(string Postid, string UserName, string Password);

        [XmlRpcMethod("metaWeblog.getCategories")]
        CategoryInfo[] GetCategories(string Blogid, string username, string Password);

        [XmlRpcMethod("metaWeblog.getRecentPosts")]
        Post[] GetRecentPosts(string Blogid, string UserName, string Password, int NumberOfPosts);

        [XmlRpcMethod("metaWeblog.newMediaObject")]
        MediaObjectInfo NewMediaObject(string Blogid, string UserName, string Password, MediaObject MediaObject);
    }
}